package com.molinari.coding.activities.choose;

import android.os.Bundle;
import android.widget.Button;

import com.molinari.androidstructure.activity.BaseActivity;
import com.molinari.androidstructure.listener.OnClickApriActivity;
import com.molinari.coding.R;
import com.molinari.coding.activities.home.HomeUtenteActivity;
import com.molinari.coding.activities.photo.PhotoActivity;

public class ChooseActivity extends BaseActivity {

	private Button btnPhoto = null;
	private Button btnCode = null; 
	
	@Override
	protected int getIdLayout() {
		return R.layout.scegli;
	}

	@Override
	protected void onCreateCustom(Bundle savedInstanceState) throws Exception {
		btnPhoto = loadButton(btnPhoto, R.id.btnScegliFoto);
		btnCode = loadButton(btnCode, R.id.btnScegliCode);
		
		btnCode.setOnClickListener(new OnClickApriActivity(HomeUtenteActivity.class, this));
		btnPhoto.setOnClickListener(new OnClickApriActivity(PhotoActivity.class, this));
	}

	@Override
	public int getIdMenu() {
		return R.menu.main;
	}

}
